package ModelLayer;

import ModelLayer.Customer;
import ModelLayer.Invoice;

public class SalesOrder {
	private int orderId;
	private String orderDate;
	private String deliveryDate;
	private String deliveryStatus;

	private Invoice invoice;
	private Customer customer;

	//Constructors
	public SalesOrder()
	{}
	
	public SalesOrder(int id)
	{
		this.orderId = id;
	}
	
	public SalesOrder(int orderId, String orderDate, String deliveryDate,
			String deliveryStatus) {
		this.orderId = orderId;
		this.orderDate = orderDate;
		this.deliveryDate = deliveryDate;
		this.deliveryStatus = deliveryStatus;
		
		this.customer = new Customer();
		this.invoice = new Invoice();
	}

//Getters and setters	
	//OrderId
	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	//OrderDate
	public String getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(String orderDate) {
		this.orderDate = orderDate;
	}

	//DeliveryDate
	public String getDeliveryDate() {
		return deliveryDate;
	}

	public void setDeliveryDate(String deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	//DeliveryStatus
	public String getDeliveryStatus() {
		return deliveryStatus;
	}

	public void setDeliveryStatus(String deliveryStatus) {
		this.deliveryStatus = deliveryStatus;
	}

	//Customer
	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
	//Invoice
	public Invoice getInvoice() {
		return invoice;
	}

	public void setInvoice(Invoice invoice) {
		this.invoice = invoice;
	}
}
